Test nuke types.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Fri, 4 Nov 2005 23:19:45 +0000 (23:19 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Fri, 4 Nov 2005 23:19:45 +0000 (23:19 +0000)
gpsbabel/testo

index 2b85fce8a3fcdb1ea36e080feac03e94693fb305..c6ac0fb07bd2f6e91996c2ff669fe55397ebc9fb 100755 (executable)
@@ -927,4 +927,17 @@ ${PNAME} -r -i compegps -f reference/route/compegps.rte -o compegps -F ${TMPDIR}
 ${PNAME} -i compegps -f ${TMPDIR}/compegps.rte -o gpx -F ${TMPDIR}/compegps-rte2.gpx
 compare reference/route/compegps-rte.gpx ${TMPDIR}/compegps-rte2.gpx
 
+#
+# Testing the 'nuketypes' filter is funky.
+# Convert a GPX file to GPX to eliminate jitter.
+# Then nuke the all but the three individual types, merge the result together
+# and verify we got the original back.
+#
+${PNAME} -i gpx -f reference/gdb-sample.gpx -o gpx -F ${TMPDIR}/alltypes.gpx
+${PNAME} -i gpx -f ${TMPDIR}/alltypes.gpx -x nuketypes,tracks,routes -o gpx -F ${TMPDIR}/wpts.gpx
+${PNAME} -i gpx -f ${TMPDIR}/alltypes.gpx -x nuketypes,waypoints,routes -o gpx -F ${TMPDIR}/trks.gpx
+${PNAME} -i gpx -f ${TMPDIR}/alltypes.gpx -x nuketypes,waypoints,tracks -o gpx -F ${TMPDIR}/rtes.gpx
+${PNAME} -i gpx -f ${TMPDIR}/wpts.gpx -f ${TMPDIR}/trks.gpx -f ${TMPDIR}/rtes.gpx -o gpx -F ${TMPDIR}/merged.gpx
+compare ${TMPDIR}/alltypes.gpx ${TMPDIR}/merged.gpx
+
 exit 0